class Car:
    wheels = 4
    def drive(self):
        print('开车方式')
    def stop(self):
        print('开车方式')

my_car = Car()
# 调用drive方法
my_car.drive()
# 调用stop方法
my_car.stop()
# 访问类属性wheels
print(f"汽车的轮子数量：{my_car.wheels}")
#
# print(my_car.wheels)
# my-car.drive()
# my_car.stop()

class PersonInfo:

    __weight = 55
    def __info(self):
        print(f'我的体重是{self.__weight}kg')
    def get_weight(self):
        print(f'我的体重是{self.__weight}kg')
        self.__info()

person = PersonInfo()
person.get_weight()